home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
codetree
/
codetree.txt
< prev
next >
Wrap
Text File
|
1997-10-07
|
4KB
|
97 lines
About CodeTree
CodeTree is an enhanced project browser for Visual Basic 5.
It allows you to browse not only the categories and files
(like the built in project window), but the individual
functions as well. You Simply expand the tree and click
on the function (or property, global, etc.) you would like
to work on. CodeTree opens the file and positions the window
to that function automatically.
CodeTree presents projects in a tree view, much like the
built-in project window, but extends the functionality to
create a browser that is somewhat like Visual C++.
CodeTree also has a limited ability to detect that a given
function calls other functions in its body. This provides a
quick (static) call tree so that you can browse to all related
functions when you are working. If you have a large project,
or very long functions, please be patient. It sometimes takes
a while to figure out all the called items. CodeTree does run
in its own thread, however, and you can work in the rest of
VB while it is searching.
CodeTree has the single feature that no VB user should be
without, FindAll. When in the VB code window editing, simply
highlight a string that you are looking for and select Find
All from the Right-Mouse context menu. The answer will be
presented in a list of Project.Module with line number. Clicking
a row in the list will take you to that location in code!
Instructions
After activating Code Tree, select it from the Add-In menu. A view
will be presented in a dockable window. Expand and explore your
project. Component level items (form, module, class, etc.) can be
filtered to exclude items with the right-mouse context menu.
Clicking a component or member (property, variable, method, etc.)
will take you directly to that item.
Individual functions can be scanned for other methods and variables
that they reference. With the right mouse menu, select Show Calls
on a member. Be patient, it can take a small amount of time (10-30
sec.) to scan a decent size projects (20-30 forms, 4-5k lines),
depending on the total number of variables and functions. Only
module level items are scanned for. The intent of this function
is navigational, allowing you to quickly see all items you are
calling and go to them. At this time, CodeTree does not resolve
to the object level. In simple terms if you have a really generic
method name like Enabled, you will see it multiple times in the
CodeTree (once for each object with and Enabled method), it doesn't
make any effort to figure out what object class it applies to.
The Find All is the simplest and most useful feature. Select text
in the VB Code Window, and pick Find All on the right-mouse menu.
There is no status bar currently, but the search tends to be very
fast, even on projects of several thousand lines.
Revision History
0.6 First Available Release
--Reworking of internal components into OCX format
--Addition of context menu find all feature
--Limited progress bar
0.5 Internal Test Release
--Mapping of VBIDE to support extensions
--Browser code located in AX document
License
This version of CodeTree is free to all users of VB 5. Please take
the time to email me at wballard@clubnet.net with the subject line
CodeTree so that I can provide you with information on enhancements.
CodeTree is (c)1997 Will Ballard, all rights reserved.
Support
CodeTree is free, so support is limited. However, mail with the
subject line CodeTree will be processed and bug reports and
suggestions for enhancements will be taken seriously.
At this time, fax contact is also available at (310) 796-1981,
sorry, no 800 number! Best to just use email...
Installation Notes
The setup program is designed to bother you as little as possible.
It only asks for an installation directory. Otherwise, it will
register the codetree.dll and put the proper entry in the vbaddin.ini
file to connect it to you VB5 GUI.
If, however, you do not file CodeTree in you Add-in Manager:
1. Register codetree.dll with regsvr32.exe
2. Add CodeTree.Connect=0 to your vbaddin.ini file